<!DOCTYPE html>
<!-- saved from url=(0033)http://www.toutoupiao.com/AddVote -->
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="#" rel="shortcut icon" type="image/x-icon">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>	更改投票</title>
    <link href="/css/style.min.css" rel="stylesheet">

    <link href="/css/froalaeditor.min.css" rel="stylesheet">

    <link href="/css/DateTimePicker.css" rel="stylesheet">

    <link href="/css/fine-uploader5.3.0.css" rel="stylesheet">

    <link href="/css/notifIt.css" rel="stylesheet">
   <style>
   #div99{
            position:fixed;
            top:0;
            left:0;
            bottom:0;
            right:0;
            z-index:-1;
            }
            div#div99 > img {
            height:100%;
            width:100%;
            border:0;
            }
  </style>



</head>
<body class="right-sb">
<div id="div99"><img src="../images/1.jpg"/></div>


<div class="container">
<!-- Start Header -->
<header class="header-wrap clearfix"><div class="slicknav_menu">
        <a href="#" aria-haspopup="true" tabindex="0" class="slicknav_btn slicknav_collapsed" style="outline: none;">
            <span class="slicknav_menutxt">MENU</span>
            <span class="slicknav_icon"><span class="slicknav_icon-bar"></span>
                <span class="slicknav_icon-bar"></span><span class="slicknav_icon-bar"></span></span></a>

        <nav class="slicknav_nav slicknav_hidden" aria-hidden="true" role="menu" style="display: none;">
        <div class="menu-navigation-container">
            <ul class="menu">

                <li class="slicknav_collapsed slicknav_parent">
                    <a href="#"class="slicknav_item" style="outline: none;">
                        <a class="username" href="userinfo" title="管理">{{Auth::user()->name}}</a>
                    <span class="slicknav_arrow">►</span></a>
                    <ul class="sub-menu slicknav_hidden" role="menu" aria-hidden="true" style="display: none;">
                        <li><a href="{{url('createVote')}}" role="menuitem" tabindex="-1">发起投票</a></li>
                        <li><a href="{{url('prev')}}" role="menuitem" tabindex="-1">我的菜单</a></li>

                    </ul>
                </li>

                <li>

                    <a href="{{url('auth/logout')}}">注销</a>

                </li>

            </ul>
        </div>
    </nav></div>
    <div class="logo" role="banner">
        <a href="/" title="投票网" rel="home">
            <div class="logo-text">
                <h1 class="logo-name">投票网</h1>
            </div>
        </a>
    </div>
    <nav class="main-nav clearfix">
        <div class="menu-navigation-container">
            <ul id="menu-navigation" class="menu">

                <li><a class="username" href="userinfo" title="管理">{{Auth::user()->name}}</a>
                    <ul class="sub-menu">
                        <li><a href="{{url('createVote')}}">发起投票</a></li>
                        <li><a href="{{url('prev')}}">我的菜单</a></li>

                    </ul>
                </li>

                <li>
                    <form id="logoutForm" action="{{url('auth/logout')}}" method="post">
                        <input name="__RequestVerificationToken" type="hidden" value="">
                        <a href="{{url('auth/logout')}}">注销</a>
                    </form>
                </li>

            </ul>
        </div>
    </nav>
</header>
<!-- End Header -->

        <div class="content-section clearfix">
            <div id="main-content" class="content">
                <form action="{{url('upVote')}}" method="post">
                    {!! csrf_field() !!}
                <article class="loop-container content-margin clearfix">
                    <header class="page-title-wrap">
                        <h1 class="page-title">修改投票</h1>
                    </header>

                    <div class="entry-content clearfix">
                        <p>
                            <label for="VoteName">投票标题</label><br>
                            <input id="VoteName" name="title" type="text" value="{{$data['title']}}">
                        </p>
                        <div>简介</div>
                        <textarea name="desc" id="textarea" cols="30" rows="2">{{$data['desc']}}</textarea>
                        @foreach($data['selects'] as $d)
                            <ul id="options_list" class="item-list">

                                <li class="options_list_var">
                                    <div class="clearfix">
                                        <label>选项{{$d['sid']}}</label><br>
                                        <input id="title1" name="titleName1" type="text" value="{{$d['link']}}"><br>
                                    </div>
                                </li>

                            </ul>
                            <input type="button" class="options_list_add" id="add_item" value="增加选项" onclick="addTitle()">
                            <input type="button" class="options_list_add" id="del_item" value="删除选项" onclick="delTitle()">
                        @endforeach
                    </div>
                </article>


                <section class="loop-container related-posts content-background content-margin">
                    <header class="page-title-wrap">
                        <h1 class="page-title">功能设置</h1>
                    </header>
                    <ul class="related-wrap">
                        <li>
                            <div class="function_tag">
                                单选多选：
                                @if($data['type'] == 1)
                                <input type="radio" name="type" value="1" checked="checked">单选</input>
                                @elseif($data['type'] == 2)
                                <input type="checkbox" name="type" value="2" checked="checked">多选</input>
                                @endif

                                <span class="field-validation-valid"></span>
                            </div>
                        </li>
                    </ul>
                </section>
                <div class="content-background clearfix">
                    <h3 class="center-container">

                        <input type="submit" id="addsubmit" class="submit" value="发布投票">

                    </h3>
                    <input type="hidden" id="uid" value="{{Auth::user()->uid}}">
                </div>
                </form>


            </div>
            <aside id="main-sidebar" class="sidebar">
                <div class="sb-widget" id="searchvoteitem">
                    <div class="widget-content">
                        <form action="{{url('/sea')}}" class="searchform" id="searchform" method="post">
                            {!! csrf_field() !!}
                            <div>
                                <input type="text" value="" name="keywords" id="keywords" />
                                <input type="submit" id="searchsubmit" value="搜索" />
                            </div>
                        </form>
                    </div>
                </div>

            </aside>
        </div>
    </div>

</body>
<script src="/js/jquery.js"></script>
<script src="/js/add_item.js"></script>

</html>

